<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="${basePath }" />
<title>管理员-登录</title>
<script type="text/javascript" src="source/js/jquery-1.5.2.min.js"></script>
<script type="text/javascript">
	if(window.top.location != "${basePath}login.jsp" && window.top.location != "${basePath}login!login.htm"){
		window.top.location = "${basePath}login.jsp";
	}

	function submitForm() {
		if ("" == $.trim($("#loginName").val())) {
			alert("请输入帐号！");
			return false;
		}
		if ("" == $.trim($("#loginPwd").val())) {
			alert("请输入密码！");
			return false;
		}

		//通过所有判断提交表单
		$("#loginForm").submit();
	}
</script>
</head>
<body>
	<div id="divOutBox">
		<div id="divMainBox">
			<div id="divInBox">
				<div id="divLoginBox">
					<s:form id="loginForm" action="login!login.htm" method="post">
						<fieldset class="fieldset_login" style="width: 350px;">
							<legend> 用户登录 </legend>
							<table>
								<tr>
									<th>帐 号：</th>
									<td><s:textfield id="loginName" name="loginName"
											title="请输入帐号！" value="umb_2012"></s:textfield>
									</td>
								</tr>
								<tr>
									<th>密 码：</th>
									<td><s:password id="loginPwd" name="loginPwd"
											title="请输入密码！"></s:password>
									</td>
								</tr>
								<tr>
									<td></td>
									<td valign="middle">
										<div class="buttons">
											<button type="button" onclick="submitForm()" class="positive"
												name="save">
												<img src="source/imgs/apply2.png" /> 登&nbsp;&nbsp;录
											</button>

										</div>
									</td>
								</tr>
							</table>
						</fieldset>
					</s:form>
				</div>
			</div>
		</div>
	</div>
</body>
<c:if test="${msg!=null}">
	<script type="text/javascript">
		alert('${msg}');
	</script>
</c:if>
</html>
